

xproduc( )
{
ls *.fit >listi
#listfit=$1
dir_root=`pwd`
for file in `cat listi`
do
	cd $dir_root
	echo `date` >>timeg.log
	echo $file >>timeg.log
	#sh xsetheadlist.sh $file
	sh ~/software/softgft/xgft_ot.sh $file 
	cd $dir_root
	echo `date` >>timeg.log
	echo "==========" >>timeg.log
done



}



Dir_data="/disk2/test/simuData/dat/BAtraining/scenario1"
cd $Dir_data
cd cgft/g/
gnome-terminal -t "cgft g" -x bash -c "xbatch.sh; exec bash;" &

cd $Dir_data
cd cgft/r/
gnome-terminal -t "cgft r" -x bash -c "xbatch.sh; exec bash;" &

